package cz.muni.fi.pa165.musiclibrary.api.service.auth;

/**
 * General exception that can occure during authentication, authorization
 * process or when trying to execute a method that user is not authorized to
 * execute.
 * 
 * @author Maros Kucbel
 * @date 2013-01-22T18:34:52+0100
 */
public class AuthException extends RuntimeException {

    /**
     * Constructor.
     * @param message Exception message. 
     */
    public AuthException(String message) {
        super(message);
    }
    
    /**
     * Constructor.
     * @param message Exception message.
     * @param cause Cause of exception.
     */
    public AuthException(String message, Throwable cause) {
        super(message, cause);
    }
}